package com.example.rabc.factory;

import com.example.rabc.dao.UserDao;
import com.example.rabc.dao.RoleDao;
import com.example.rabc.dao.PermissionDao;
import com.example.rabc.dao.impl.MySqlPermissionDao;
import com.example.rabc.dao.impl.MySqlRoleDao;
import com.example.rabc.dao.impl.MySqlUserDao;

/**
 * MySQL具体工厂类
 * 实现创建具体产品的方法
 */
public class MySqlDaoFactory implements DaoFactory {
    @Override
    public UserDao createUserDao() {
        return new MySqlUserDao();
    }
    
    @Override
    public RoleDao createRoleDao() {
        return new MySqlRoleDao();
    }
    
    @Override
    public PermissionDao createPermissionDao() {
        return new MySqlPermissionDao();
    }
}